script.importExtension("qt");
script.importExtension("qt.core");
script.importExtension("qt.gui");

var mainWidget = new QMainWindow();
var statusLabel = new QLabel(mainWidget);
var pathEdit = new QLineEdit(mainWidget);
var completer = new QCompleter(pathEdit);
var completerModel = new QDirModel();

mainWidget.statusBar().addWidget(statusLabel);
mainWidget.setCentralWidget(pathEdit);

completer.setModel(completerModel);

pathEdit.setCompleter(completer);

statusLabel.setText("TEST!!!");

print(systemEnvironment["PWD"]);
print( script.readAllFromFile("./test.qs") );

mainWidget.show();
QCoreApplication.exec();
